// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.StandardClauseRelationDao;
import com.liuxinlong.modules.entity.StandardClauseRelation;
import com.liuxinlong.modules.mapper.StandardClauseRelationMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年4月12日
 */
@Service
public class StandardClauseRelationDaoImpl extends ServiceImpl<StandardClauseRelationMapper, StandardClauseRelation>
        implements StandardClauseRelationDao {

    @Override
    public List<StandardClauseRelation> getRelationByStandard(String standardId) {
        return baseMapper.getRelationByStandard(standardId);
    }

    @Override
    public int getClauseCount(String standardId) {
        return baseMapper.getClauseCount(standardId);
    }

    @Override
    public StandardClauseRelation getRelation(String standardId, String clauseId) {
        return baseMapper.getRelation(standardId,clauseId);
    }

    @Override
    public List<StandardClauseRelation> getRelationByClause(List<String> list) {
        return baseMapper.getRelationByClause(list);
    }
}
